package net.dgg.rz.production.dao;

import net.dgg.rz.production.entity.PunishScheme;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author:cuipeng
 * @create 2019/03/19
 **/
@Component
public interface PunishSchemeDao {
    //分页查询扣罚方案
    List<PunishScheme> queryWithPage(Map map);
    //新增扣罚方案
    int addPunish(PunishScheme punishScheme);
    //根据主键ID查询
    PunishScheme selectPunishById(Long id);
    //修改扣罚方案
    int updatePunishById(PunishScheme punishScheme);

    List<PunishScheme> queryList(PunishScheme punishScheme);

    int countPunishByName(Map map);

}
